import './style.css'
import * as util from './util.js';
import Router from './router/index';
// Load the full build.
const _ = require('lodash');
console.log('aa', _.chunk(['a', 'b', 'c', 'd'], 2))
// import proxy from './text.js';
window.util = util
Router([
    {
        hash: '/',
        tamplateUrl: 'login.html',
        // default: true
        // router: new Router([
        //     new Route({
        //         hash: '/home',
        //         tamplateUrl: 'home.html'
        //     })
        // ])
    }, {
        hash: '/about',
        tamplateUrl: 'about.html',
        childRoute: [{
            hash: '/about/detail',
            tamplateUrl: 'detail.html'
        }, {
            hash: '/about/personal',
            tamplateUrl: 'personal.html',
            default: true
        }]
    }, {
        hash: '/home',
        tamplateUrl: 'home.html'
    }, {
        hash: '/test',
        tamplateUrl: 'test.html',
        // default: true
    }
])

// const input = document.getElementById('input');
// const p = document.getElementById('p');
// // input.addEventListener('keyup', function (e) {
// //     newObj.text = e.target.value;
// // });
// console.log('input', new proxy)